﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL.BusinessRules;

namespace BLL
{
    public class DMKHACHHANG:BusinessObject
    {
        public string MaKhachHang { get; set; }
        public string TenKhachHang { get; set; }
        public string TenCongTy { get; set; }
        public string DiaChi { get; set; }
        public string DienThoai { get; set; }
        public string Fax { get; set; }
        public string WebSite { get; set; }
        public string TaiKhoan { get; set; }
        public string MaSoThue { get; set; }
        public bool? IsUse { get; set; }
        public int? CreateBy { get; set; }
        public int? ModifiedBy { get; set; }
        public DateTime? ModifiedOn { get; set; }

        public DMKHACHHANG()
        {
            AddRule(new ValidateRequired("MaKhachHang"));
            AddRule(new ValidateLength("MaKhachHang", 1, 50));
            AddRule(new ValidateRequired("TenKhachHang"));
            AddRule(new ValidateLength("TenKhacHang", 1, 255));
        }

        public DMKHACHHANG(string maKhachHang, string tenKhachHang, string tenCongTy, string diaChi, string dienThoai, string fax, string website,
                string taiKhoan, string maSoThue, bool? isUse, int? createBy, int? modifiedBy, DateTime? modifiedOn)
            : this()
        {
            MaKhachHang = maKhachHang;
            TenKhachHang = tenKhachHang;
            TenCongTy = tenCongTy;
            DiaChi = diaChi;
            DienThoai = dienThoai;
            Fax = fax;
            WebSite = website;
            TaiKhoan = taiKhoan;
            MaSoThue = maSoThue;
            IsUse = isUse;
            CreateBy = createBy;
            ModifiedBy = modifiedBy;
            ModifiedOn = modifiedOn;
        }

    }
}
